package cn.anycase.demo.vo;

import cn.anycase.demo.enums.SampleConstants;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: stanlogy-sample
 * <p>修改SampleVO</p>
 * @author: lmh
 * @create: 2022-09-21 22:26
 **/
@Data
@ApiModel(value = "修改Sample入参VO")
public class SampleUpdateInputVO implements Serializable{

    @ApiModelProperty(value = "主键id",required = true)
    @NotBlank(message = SampleConstants.ID_IS_NOT_NULL)
    private String id;

    @ApiModelProperty("名字")
    private String name;

    private Integer age;

    @ApiModelProperty(value = "性别", allowableValues = "F,M")
    @Length(max = 1, message = "性别参数只有一位，F或者M")
    private String gender;

    @ApiModelProperty(value = "修改人")
    private String createBy;
}
